﻿<h2 class="title">Додади датотека</h2>

<?php echo form_open_multipart('admin/addPDF'); ?>
PDF:<input type="file" name="pdfFile" id="pdfFile" /><br/>
	<input type="submit" name="submit" value="Додади" />

<?php echo form_close(); ?>
<?php echo form_open_multipart('admin/addImage'); ?><br/>
Слика:<input type="file" name="imageFile" id="imageFile" /><br/>
<input type="submit" name="submit" value="Додади" />
<?php echo form_close(); ?><br/>
<h2>Слики</h2>
<?php 
	foreach ($imagesDir as $image)
	{
		echo "<tr><td><a href='".base_url('/uploads/images/misc/'.$image)."'>".base_url('/uploads/images/misc/'.$image)."</a></td></tr><br />";
	}	
?>
<h2>PDF</h2>
<?php 
	foreach ($pdfDir as $pdf)
	{
		echo "<tr><td><a href='".base_url('/uploads/pdf/'.$pdf)."'>".base_url('/uploads/pdf/'.$pdf)."</a></td></tr><br />";
	}	
?>